package cn.edu.zut.service;

import cn.edu.zut.domin.User;

import java.util.List;

public interface IUserService {

    //查询所有用户--分页
    public List<User> findAll(int page, int size) throws Exception;
    //查询所有用户--不分页
    public List<User> findAll() throws Exception;
    //根据账号查找用户
    public User findById(String id) throws Exception;
    //根据姓名查询用户信息
    public List<User> findByUserName(String username) throws Exception;
    //添加某个用户的信息
    public void saveUser(User user) throws Exception;
    //删除某个用户
    public void deleteUserById(String id) throws Exception;
    //更新用户信息
    public void updateUser(User user) throws Exception;
}
